package com.atguigu.tingshu.common.threadpool;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;

/**
 * @BelongsProject: tingshu-backend
 * @BelongsPackage: com.atguigu.tingshu.common.threadpool
 * @Author: coilk
 * @CreateTime: 2025-03-19  19:04
 * @Description:
 * @Version: 1.0
 */
@Data
@ConfigurationProperties(prefix = "app.threadpool")
public class ThreadPoolProperties {
    private Integer corePoolSize = 2 * Runtime.getRuntime().availableProcessors();// 默认的
    private Integer maxPoolSize = 4 * Runtime.getRuntime().availableProcessors(); // 默认的
    private Integer queueSize = 50;
}
